package graphics;

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior;
import javax.media.j3d.BoundingSphere;
import javax.media.j3d.Canvas3D;
import javax.vecmath.Point3d;

/**
 *
 * @author George
 */
public class BehaviorFactory {
    
    //responsável pela movimentação dos sólidos através do mouse
    public static OrbitBehavior newOrbitBehavior(Canvas3D canvas) {        
        OrbitBehavior orbit = new OrbitBehavior(canvas, 
                OrbitBehavior.REVERSE_ALL);
        BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 
                100.0);
        orbit.setSchedulingBounds(bounds); 
        return orbit;
    }
    
}
